/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Bai2;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author Thu
 */
public class MyFileFilter extends FileFilter{
      public boolean accept(File f) {

                                String s = f.getName();


                                if (s.endsWith(".mp4")||s.endsWith(".aiff")||s.endsWith(".flv")||s.endsWith(".wav")) {



                                    return true;
                                }
                                else {
                                    return false;
                                }

                            }

                            public String getDescription() {

                                return "Audio(*.aiff,.au,*.wav,*.mp3)";
                            }

}
